package Server;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class TralalaReceiver extends UnicastRemoteObject implements
		ITralalaReceiver {

	
	private static final long serialVersionUID = 1L;
	private TralalaService progServ;
	
	public TralalaReceiver(TralalaService p) throws RemoteException {
		super();
		progServ = p;
	}
	
	@Override
	public SongDTO[] receiveSongs() throws RemoteException {
		
		return progServ.SendSongs();
	}
	@Override
	public Song receiveASong(String title) throws RemoteException {
		
		return progServ.SendASong(title);
	}

}
